package com.yuerlive.rainbow.api;


import com.yuerlive.rainbow.utils.RetrofitUtil;

import retrofit2.Retrofit;

/**
 * Created by xiaoyi on 2017/5/17.
 */

public class UserApi {
    public UserService service;

    private UserApi() {
        Retrofit retrofit = RetrofitUtil.getRetrofit();
        service = retrofit.create(UserService.class);
    }

    public static UserApi getInstance() {
        return UserApiHolder.INSTANCE;
    }

    private static class UserApiHolder {
        public static final UserApi INSTANCE = new UserApi();
    }

}
